package com.shunbo.convenient.service.impl;

import com.shunbo.convenient.dao.LogMapper;
import com.shunbo.convenient.service.LogService;
import com.shunbo.convenient.vo.Log;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author weizhuang
 */

@Service
@Transactional
public class LogServiceImpl implements LogService {

    @Resource
    private LogMapper logMapper;

    @Override
    public Integer save(Log obj) {
        return logMapper.save(obj);
    }

    @Override
    public Integer update(Log obj) {
        return logMapper.update(obj);
    }

    @Override
    public Integer delete(String obj) {
        return logMapper.delete(obj);
    }

    @Override
    public Log findById(String obj) {
        return logMapper.findById(obj);
    }

    @Override
    public List<Log> findAll(Log obj) {
        return logMapper.findAll(obj);
    }

    @Override
    public List<Log> findBetween(String start, String end) {
        return logMapper.findBetween(start,end);
    }
}
